package com.dd.service;

import com.dd.dao.CourseMapper;
import com.dd.pojo.Coach;
import com.dd.pojo.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseServiceImpl implements CourseService{
    @Autowired
    CourseMapper courseMapper;

    public List<Course> selectk() {
        return courseMapper.selectk();
    }

    public int addk(Course course) {
        return courseMapper.addk(course);
    }

    public int updatek(Course course) {
        return courseMapper.updatek(course);
    }

    public int deletek(int id) {
        return courseMapper.deletek(id);
    }

    public List<Course> selectbykname(String kname) {
        return courseMapper.selectbykname(kname);
    }
}
